home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_076
/
include
/
devices
/
trackdisk.g
< prev
Wrap
Text File
|
1992-05-06
|
2KB
|
83 lines
/* requires previous inclusion of include:exec/io.g */
type
Unit_t = unknown 8,
IOExtTD_t = struct {
IOStdReq_t iotd_Req;
ulong iotd_Count, iotd_SecLabel;
},
TDU_PublicUnit_t = struct {
Unit_t tdu_Unit;
uint tdu_Comp01Track, tdu_Comp10Track, tdu_Comp11Track;
ulong tdu_StepDelay, tdu_SettleDelay;
ushort tdu_RetryCnt;
};
uint
NUMSECS = 11,
NUMUNITS = 4,
TD_SECTOR = 512,
TD_SECSHIFT = 9;
*char TD_NAME = "trackdisk.device";
uint TDF_EXTCOM = 1 << 15;
uint
TD_MOTOR = CMD_NONSTD+0,
TD_SEEK = CMD_NONSTD+1,
TD_FORMAT = CMD_NONSTD+2,
TD_REMOVE = CMD_NONSTD+3,
TD_CHANGENUM = CMD_NONSTD+4,
TD_CHANGESTATE = CMD_NONSTD+5,
TD_PROTSTATUS = CMD_NONSTD+6,
TD_RAWREAD = CMD_NONSTD+7,
TD_RAWWRITE = CMD_NONSTD+8,
TD_GETDRIVETYPE = CMD_NONSTD+9,
TD_GETNUMTRACKS = CMD_NONSTD+10,
TD_ADDCHANGEINT = CMD_NONSTD+11,
TD_REMCHANGEINT = CMD_NONSTD+12,
TD_LASTCOMM = CMD_NONSTD+13,
ETD_WRITE = TDF_EXTCOM | CMD_WRITE,
ETD_READ = TDF_EXTCOM | CMD_READ,
ETD_MOTOR = TDF_EXTCOM | TD_MOTOR,
ETD_SEEK = TDF_EXTCOM | TD_SEEK,
ETD_FORMAT = TDF_EXTCOM | TD_FORMAT,
ETD_UPDATE = TDF_EXTCOM | CMD_UPDATE,
ETD_CLEAR = TDF_EXTCOM | CMD_CLEAR,
ETD_RAWREAD = TDF_EXTCOM | TD_RAWREAD,
ETD_RAWWRITE = TDF_EXTCOM | TD_RAWWRITE,
IOTDB_INDEXSYNC = 4,
IOTDF_INDEXSYNC = 1 << IOTDB_INDEXSYNC,
TD_LABELSIZE = 16,
TDB_ALLOW_NON_3_5 = 0,
TDF_ALLOW_NON_3_5 = 1 << TDB_ALLOW_NON_3_5,
DRIVE3_5 = 1,
DRIVE5_25 = 2;
int
TDERR_NotSpecified = 20,
TDERR_NoSecHdr = 21,
TDERR_BadSecPreamble = 22,
TDERR_BadSecID = 23,
TDERR_BadHdrSum = 24,
TDERR_BadSecSum = 25,
TDERR_TooFewSecs = 26,
TDERR_BadSecHdr = 27,
TDERR_WriteProt = 28,
TDERR_DiskChanged = 29,
TDERR_SeekError = 30,
TDERR_NoMem = 31,
TDERR_BadUnitNum = 32,
TDERR_BadDriveType = 33,
TDERR_DriveInUse = 34,
TDERR_PostReset = 35;